<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

<f:metadata>
<f:event type="preRenderView" listener="#{MBLogin.checkAlreadyLoggedin}" />
</f:metadata>
    
    <ui:composition template="./newTemplate.xhtml">
      <!--  <ui:define name="title">
            <h:outputText value="#{bundle.CreateHdRolesTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
      --><ui:define name="content">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateHdRolesLabel_codRol}" for="codRol" />
                    <p:inputText id="codRol" value="#{hdRolesController.selected.codRol}" title="#{bundle.CreateHdRolesTitle_codRol}" required="true" requiredMessage="#{bundle.CreateHdRolesRequiredMessage_codRol}"/>
                    <h:outputLabel value="#{bundle.CreateHdRolesLabel_desRol}" for="desRol" />
                    <p:inputText id="desRol" value="#{hdRolesController.selected.desRol}" title="#{bundle.CreateHdRolesTitle_desRol}" />
                    <h:outputLabel value="#{bundle.CreateHdRolesLabel_indEstadoRol}" for="indEstadoRol" />
                    <p:inputText id="indEstadoRol" value="#{hdRolesController.selected.indEstadoRol}" title="#{bundle.CreateHdRolesTitle_indEstadoRol}" />
                </h:panelGrid>
                <br />
                <h:commandLink action="#{hdRolesController.create}" value="#{bundle.CreateHdRolesSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{hdRolesController.prepareList}" value="#{bundle.CreateHdRolesShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateHdRolesIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
